package com.feng.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.io.StringReader;

@Controller
public class MethodController {
    //@RequestMapping(value = {"/get","/post"})
    public String TestMethod(){
        return "method";
    }
    //@RequestMapping(value = {"/get","/post"},method = RequestMethod.GET)
    public String TestMethod2(){
        return "method";
    }

    @GetMapping("/get")
    public String TestMethod3(){
        return "method";
    }
}
